# coding: utf-8


def _file_read(filename="./test.txt"):
    """
    读取ip列表
    """
    with open(filename) as _obj:
        try:
            content = _obj.read().replace(" ", "").split("\n")
            print("---------------- read sacn IP --------------------------\n", content)
            return content
        except Exception as e:
            print("_file_read error: %s" % (str(e)))


_file_read()